package com.ruoyi.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mes.mapper.NewEnergyAnalysisMapper;
import com.ruoyi.mes.domain.NewEnergyAnalysis;
import com.ruoyi.mes.service.INewEnergyAnalysisService;

/**
 * 能耗统计分析Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
@Service
public class NewEnergyAnalysisServiceImpl implements INewEnergyAnalysisService 
{
    @Autowired
    private NewEnergyAnalysisMapper newEnergyAnalysisMapper;

    /**
     * 查询能耗统计分析
     * 
     * @param analysisId 能耗统计分析主键
     * @return 能耗统计分析
     */
    @Override
    public NewEnergyAnalysis selectNewEnergyAnalysisByAnalysisId(Long analysisId)
    {
        return newEnergyAnalysisMapper.selectNewEnergyAnalysisByAnalysisId(analysisId);
    }

    /**
     * 查询能耗统计分析列表
     * 
     * @param newEnergyAnalysis 能耗统计分析
     * @return 能耗统计分析
     */
    @Override
    public List<NewEnergyAnalysis> selectNewEnergyAnalysisList(NewEnergyAnalysis newEnergyAnalysis)
    {
        return newEnergyAnalysisMapper.selectNewEnergyAnalysisList(newEnergyAnalysis);
    }

    /**
     * 新增能耗统计分析
     * 
     * @param newEnergyAnalysis 能耗统计分析
     * @return 结果
     */
    @Override
    public int insertNewEnergyAnalysis(NewEnergyAnalysis newEnergyAnalysis)
    {
        return newEnergyAnalysisMapper.insertNewEnergyAnalysis(newEnergyAnalysis);
    }

    /**
     * 修改能耗统计分析
     * 
     * @param newEnergyAnalysis 能耗统计分析
     * @return 结果
     */
    @Override
    public int updateNewEnergyAnalysis(NewEnergyAnalysis newEnergyAnalysis)
    {
        return newEnergyAnalysisMapper.updateNewEnergyAnalysis(newEnergyAnalysis);
    }

    /**
     * 批量删除能耗统计分析
     * 
     * @param analysisIds 需要删除的能耗统计分析主键
     * @return 结果
     */
    @Override
    public int deleteNewEnergyAnalysisByAnalysisIds(Long[] analysisIds)
    {
        return newEnergyAnalysisMapper.deleteNewEnergyAnalysisByAnalysisIds(analysisIds);
    }

    /**
     * 删除能耗统计分析信息
     * 
     * @param analysisId 能耗统计分析主键
     * @return 结果
     */
    @Override
    public int deleteNewEnergyAnalysisByAnalysisId(Long analysisId)
    {
        return newEnergyAnalysisMapper.deleteNewEnergyAnalysisByAnalysisId(analysisId);
    }
}
